package bloom

import v3 "github.com/bits-and-blooms/bloom/v3"

var Bloom = NewBloom(1000000, 0.001)

type bloom struct {
	Filter *v3.BloomFilter
}

func NewBloom(expectNum uint, misstatement float64) *bloom {
	filter := v3.NewWithEstimates(expectNum, misstatement)
	return &bloom{Filter: filter}
}
